﻿<div ng-controller="goodDeclarationController">
    <div class="wrapper border-bottom white-bg page-heading">
        <div class="col-lg-pull-12">
            <ol class="breadcrumb">
                <li><a ui-sref="app.declaration.good_list">商品申报</a></li>
                <li class="active" ng-bind="breadcrumb"></li>
            </ol>
        </div>
    </div>
  <form name="_form" class="form-horizontal w5c-form" w5c-form-validate="model.validateOptions"  novalidate role="form">
                <div class="panel">
                    <div class="panel-body">
                        <div class="row">
                            <label class="col-md-1 control-label" style="padding-left:0px;"><b>商品信息</b></label>
                            <div class="col-md-11">
                                <div class="form-group">
                                    <label class="col-sm-2 control-label">商品货号SKU</label>
                                    <div class="col-sm-5">
                                        <input type="text" name="good_sku" class="form-control input-sm" ng-model="model.good_sku " required ng-maxlength="100" ng-disabled="action == 'audit'">
                                    </div>
                                </div>
                                <div class="form-group">
                                    <label class="col-sm-2 control-label">HS编码</label>
                                    <div class="col-sm-5">
                                        <input type="text" name="hs_code" class="form-control input-sm" ng-model="model.hs_code " required ng-maxlength="100" ng-disabled="action == 'audit'">
                                    </div>
                                </div>
                                <div class="form-group">
                                    <label class="col-sm-2 control-label">商品名称</label>
                                    <div class="col-sm-5">
                                        <input type="text" name="good_name" class="form-control input-sm" ng-model="model.good_name " required ng-maxlength="100" ng-disabled="action == 'audit'">
                                    </div>
                                </div>
                                <div class="form-group">
                                    <label class="col-sm-2 control-label">电商企业名称</label>
                                    <div class="col-sm-5">
                                        <input type="text" name="name" class="form-control input-sm" ng-model="model.company_name " required ng-maxlength="100" ng-disabled="action == 'audit'">
                                    </div>
                                </div>
                                <div class="form-group">
                                    <label class="col-sm-2 control-label">商品描述</label>
                                    <div class="col-sm-6">
                                        <textarea name="good_description" rows="4" class="form-control input-sm" ng-model="model.good_description " required ng-maxlength="1000" ng-disabled="action == 'audit'"></textarea>
                                    </div>
                                    <div class="col-sm-4 row">
                                        <div class="alert alert-info" role="alert">
                                            商品描述显示在商品详情页商品名称下方.用于简短的描述该商品的概况，分享给好友时会显示这里的文案
                                        </div>
                                    </div>
                                </div>
                                <div class="form-group">
                                    <label class="col-sm-2 control-label">规格型号</label>
                                    <div class="col-sm-3">
                                        <input type="text" name="model" class="form-control input-sm" ng-model="model.model" required ng-maxlength="100" ng-disabled="action == 'audit'">
                                    </div>
                                </div>
                                <div class="form-group">
                                    <label class="col-sm-2 control-label">数量单位</label>
                                    <div class="col-sm-2">
                                        <select class="form-control input-sm" ng-model="model.unit" ng-disabled="action == 'audit'">
                                            <option value="">选择数量单位</option>
                                            <option value="瓶">瓶</option>
                                            <option value="2">虚拟</option>
                                            <!--<option value="3">积分</option>-->
                                            <option value="4">普惠积分</option>
                                        </select>
                                    </div>
                                </div>
                                <div class="form-group">
                                    <label class="col-sm-2 control-label">最小销售单位</label>
                                    <div class="col-sm-2">
                                        <select class="form-control input-sm" ng-model="model.min_unit" ng-disabled="action == 'audit'">
                                            <option value="">选择最小销售单位</option>
                                            <option value="瓶">瓶</option>
                                            <option value="2">虚拟</option>
                                            <!--<option value="3">积分</option>-->
                                            <option value="4">普惠积分</option>
                                        </select>
                                    </div>
                                </div>
                                <div class="form-group">
                                    <label class="col-sm-2 control-label">主要成分</label>
                                    <div class="col-sm-6">
                                        <textarea name="ingredient" rows="4" class="form-control input-sm" ng-model="model.ingredient" required ng-maxlength="1000" ng-disabled="action == 'audit'"></textarea>
                                    </div>
                                    <div class="col-sm-4 row">
                                        <div class="alert alert-info" role="alert">
                                            主要成分.用于描述商品主要的组成部分
                                        </div>
                                    </div>
                                </div>
                                <div class="form-group">
                                    <label class="col-sm-2 control-label">商品条形码</label>
                                    <div class="col-sm-3">
                                        <input type="text" name="barcode" class="form-control input-sm" ng-model="model.barcode" ng-disabled="action == 'audit'">
                                    </div>
                                    <div class="col-sm-7 row"><p class="form-control-static">用于商品唯一标识</p></div>
                                </div>
                                <div class="form-group">
                                    <label class="col-sm-2 control-label">商品大类</label>
                                    <div class="col-sm-3">
                                        <input type="text" name="category" class="form-control input-sm" ng-model="model.category" ng-disabled="action == 'audit'">
                                    </div>
                                </div>
                                <div class="form-group">
                                    <label class="col-sm-2 control-label">用途</label>
                                    <div class="col-sm-3">
                                        <input type="text" name="application" class="form-control input-sm" ng-model="model.application" ng-disabled="action == 'audit'">
                                    </div>
                                </div>
                                <div class="form-group">
                                    <label class="col-sm-2 control-label">生产国</label>
                                    <div class="col-sm-3">
                                        <input type="text" name="produc_country" class="form-control input-sm" ng-model="model.produc_country " ng-disabled="action == 'audit'">
                                    </div>
                                </div>
                                <div class="form-group">
                                    <label class="col-sm-2 control-label">生产企业</label>
                                    <div class="col-sm-3">
                                        <input type="text" name="produc_company" class="form-control input-sm" ng-model="model.produc_company" ng-disabled="action == 'audit'">
                                    </div>
                                </div>
                                <div class="form-group">
                                    <label class="col-sm-2 control-label">产品品牌</label>
                                    <div class="col-sm-3">
                                        <input type="text" name="brand" class="form-control input-sm" ng-model="model.brand" ng-disabled="action == 'audit'">
                                    </div>
                                </div>
                                <div class="form-group">
                                    <label class="col-sm-2 control-label">供应商</label>
                                    <div class="col-sm-3">
                                        <input type="text" name="supplier" class="form-control input-sm" ng-model="model.supplier" ng-disabled="action == 'audit'">
                                    </div>
                                </div>
                                <div class="form-group">
                                    <label class="col-sm-2 control-label">申报时间</label>
                                    <div class="col-sm-3">
                                        <input type="text" name="create_time" class="form-control input-sm" ng-model="model.create_time" ng-disabled="action == 'audit'">
                                    </div>
                                </div>
                                <div class="form-group">
                                    <label class="col-sm-2 control-label">净重</label>
                                    <div class="col-sm-3">
                                        <input type="text" name="tax" class="form-control input-sm" ng-model="model.weight" ng-disabled="action == 'audit'">
                                    </div>
                                    <div class="col-sm-7 row"><p class="form-control-static">千克</p></div>
                                </div>
                                <div class="form-group">
                                    <label class="col-sm-2 control-label">税点</label>
                                    <div class="col-sm-3">
                                        <input type="text" name="tax" class="form-control input-sm" ng-model="model.tax">
                                    </div>
                                    <div class="col-sm-7 row"><p class="form-control-static">%</p></div>
                                </div>
                                <div class="form-group">
                                    <label class="col-sm-2 control-label">国检备案号</label>
                                    <div class="col-sm-3">
                                        <input type="text" name="file_code" class="form-control input-sm" ng-model="model.file_code">
                                    </div>
                                </div>
                                <div class="form-group form-group-sm" ng-show="action == 'audit'">
                                    <label class="col-sm-2 control-label">审核状态：</label>
                                    <div class="col-sm-3">
                                        <select class="form-control input-sm" name="audit_status" ng-model="model.audit_status">
                                            <option value="">请选择商品审核状态</option>
                                            <option value="0">待缴费</option>
                                            <option value="1">审核中</option>
                                            <option value="2">报关中</option>
                                            <option value="3">完成</option>
                                            <option value="4">失败</option>
                                            <option value="5">不通过</option>
                                        </select>
                                    </div>
                                </div>
                                <!--<div class="form-group">
        <label class="col-sm-2 control-label"><span class="text-danger">*</span>商品浏览图</label>
        <div class="col-sm-5">
            <input type="file" name="file" accept="image/*" multiple="multiple" class="form-control input-sm" ngf-select ng-model="model.file">
            <input type="hidden" name="imgs" class="form-control" ng-model="model.image_path" />
            <div ui-sortable ng-model="model.image_path">
                <div class="img-thumbnail pull-left" ng-repeat="img in model.image_path" style="position:relative;margin-right:5px;">
                    <button type="button" class="close" ng-click="delete_image(img)" style="position:absolute;right:6px;">
                        <span aria-hidden="true">&times;</span>
                    </button>
                    <img ng-src="{{site.img_url+img}}" class="img-thumbnail" ng-show="model.image_path" width="60" height="60">
                </div>
            </div>
            <div class="clearfix"></div>
            <input name="model_image_path" type="hidden" ng-model="model.image_path.length" w5c-dynamic-element required pattern="^[1-5]+$" />
            <p style="margin-top:10px;">
                建议尺寸：640 x 640 像素；您可以拖拽图片调整图片顺序。
            </p>
        </div>
    </div>-->
                            </div>
                        </div>
                    </div>
                </div>
        <div class="form-group">
            <div class="col-sm-offset-4 col-sm-6">
                <button type="submit" w5c-form-submit="save()" class="btn btn-primary btn-sm" btn-loading="psdisabled" loading-text="保存中..." ng-disabled="psdisabled">
                    <i class="fa fa-save"></i> 保存
                </button>
                <button ng-click="goBack()" class="btn btn-primary btn-sm"><i class="fa fa-rotate-left"></i> 取消</button>
            </div>
        </div>
    </form>
</div>